import {axios} from '@/utils/request'

/**
 * 收银中心
 *
 * @author chen
 */
//列表
export function financeList (parameter) {
  return axios({
    url: '/finance/list',
    method: 'get',
    params: parameter
  })
}

//应收账款管理 — 列表
export function receivableList (parameter) {
  return axios({
    url: '/finance/receivable/list',
    method: 'get',
    params: parameter
  })
}

//项目收费
export function getPaymentInfo (parameter) {
  return axios({
    url: '/finance/getPaymentInfo',
    method: 'get',
    params: parameter
  })
}

//项目退单
export function returnOrder (parameter) {
  return axios({
    url: '/finance/returnOrder',
    method: 'get',
    params: parameter
  })
}

//项目退费
export function refundOrder (parameter) {
  return axios({
    url: '/finance/refundOrder',
    method: 'get',
    params: parameter
  })
}


//项目收费
export function payment (parameter) {
  return axios({
    url: '/finance/payment',
    method: 'post',
    data: parameter
  })
}

//预存款收费
export function depositPayment (parameter) {
  return axios({
    url: '/finance/depositPayment',
    method: 'post',
    data: parameter
  })
}


//未收费项目
export function noChargeItem (parameter) {
  return axios({
    url: '/finance/getItemListDetails',
    method: 'get',
    params: parameter
  })
}

//已收费-项目收款详情
export function PaymentDetails (parameter) {
  return axios({
    url: '/finance/getPaymentDetails',
    method: 'get',
    params: parameter
  })
}

//项目收费信息
export function getDepositDetailInfo (parameter) {
  return axios({
    url: '/finance/getDepositDetailInfo',
    method: 'get',
    params: parameter
  })
}

//预存款收费信息
export function getDepositPaymentInfo (parameter) {
  return axios({
    url: '/finance/getDepositPaymentInfo',
    method: 'get',
    params: parameter
  })
}

//日结测试
export function settlementTest (parameter) {
  return axios({
    url: '/settlement/test',
    method: 'get',
    params: parameter
  })
}


// 日结
export function settleHtmlSettle_1(params) {
  return axios({
      url: '/settlement/settlePayment',
      method: 'get',
      params: params
  })
}
// 日结列表 
export function handlePaymentList(params) {
  return axios({
      url: '/settlement/handlePayment/list',
      method: 'get',
      params: params
  })
}


// 账号
export function testingAccountNumber(params) {
  return axios({
    url: '/settlement/hasReport',
    method: 'get',
    params: params
  })
}

// 新建账号 
export function beginReport(params) {
  return axios({
    url: '/settlement/beginReport',
    method: 'get',
    params: params
  })
}

// 获取图片
export function getFinanceReportImgList(params) {
  return axios({
    url: '/settlement/getFinanceReportImgList',
    method: 'get',
    params: params
  })
}


// 科室结算报表 
export function getReportFormDeptAll(params) {
  return axios({
    url: '/settlement/getReportFormDeptAll',
    method: 'get',
    params: params
  })
}

// 科室结算报表明细
export function getReportFormDeptList(parameter,params) {
  return axios({
    url: '/settlement/getReportFormDeptList',
    method: 'post',
    data: parameter,
    params: params
  })
}
// 支付方式报表
export function paymentMethodReport(params) {
  return axios({
    url: '/settlement/paymentMethodReport',
    method: 'get',
    params: params
  })
}
// 支付方式明细
export function paymentMethodReportsDetail(params) {
  return axios({
    url: '/settlement/paymentMethodReportsDetail',
    method: 'get',
    params: params
  })
}

// 渠道报表
export function financeChannelList(params) {
  return axios({
    url: '/settlement/financeChannelList',
    method: 'get',
    params: params
  })
}


// 日结总表
export function getReportFormRepostAll(params) {
  return axios({
    url: '/settlement/getReportFormRepostAll',
    method: 'get',
    params: params
  })
}

// 日结总表明细
export function getReportFormReportList(parameter,params) {
  return axios({
    url: '/settlement/getReportFormReportList',
    method: 'post',
    data: parameter,
    params: params
  })
}

// 查看是否日结
export function getReport(params) {
  return axios({
    url: '/settlement/getReport',
    method: 'get',
    params: params
  })
}

// 已日结

export function selectSettleDateReport(params) {
  return axios({
    url: '/settlement/selectSettleDateReport',
    method: 'get',
    params: params
  })
}

// 科室前台-前台
export function Reception(params) {
  return axios({
    url: '/desktop/list',
    method: 'get',
    params: params
  })
}
 
// 科室前台-前台新增顾客
export function SelectCustomer(params) {
  return axios({
    url: '/desktop/selectCustomer',
    method: 'get',
    params: params
  })
} 

// 科室前台-前台新增顾客 新增
export function AddTgsDeptReceive(params) {
  return axios({
    url: '/desktop/addTgsDeptReceive',
    method: 'post',
    data: params
  })
} 
 
// 科室前台-前台治疗开单 查询
export function SelectUserProject(params) {
  return axios({
    url: '/desktop/selectUserProject',
    method: 'get',
    params: params
  })
} 


// 科室前台- 前台复查开单 查询
export function SelectConsultItemReview(params) {
  return axios({
    url: '/desktop/selectConsultItemReview',
    method: 'get',
    params: params
  })
} 

// 科室前台-前台治疗开单 提交
export function UpdateTbConsultItem(params) {
  return axios({
    url: '/desktop/updateTbConsultItem',
    method: 'post',
    data: params
  })
} 
 
// 科室前台-前台复查开单 提交
export function AddTgsTreat(params) {
  return axios({
    url: '/desktop/addTgsTreat',
    method: 'post',
    data: params
  })
} 

// 科室前台-前台复查开单 开单记录 
export function SelectTgsTreatReview(params) {
  return axios({
    url: '/desktop/selectTgsTreatReview',
    method: 'get',
    params: params
  })
}

// 科室前台-前台治疗开单 提交 指派医生 
export function SelectDoctor(params) {
  return axios({
    url: '/desktop/selectDoctor',
    method: 'get',
    params: params
  })
} 

// 科室前台-- 作废
export function DeleteDeductedList(params) {
  return axios({
    url: '/desktop/deleteDeductedList',
    method: 'get',
    params: params
  })
} 

// 前台--预约审批增加前台
export function AddMakeScheduleTgsTreat(params) {
  return axios({
      url: '/desktop/addMakeScheduleTgsTreat',
      method: 'get',
      params: params
  })
}


// 前台--新增选择科室
export function DesktopDeptList(params) {
  return axios({
    url: '/desktop/dept/list',
    method: 'get',
    params: params
  })
} 

 

